package org.dromara.demo.mapper;

import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.demo.domain.TestTree;
import org.dromara.demo.domain.vo.TestTreeVo;


/**
 * @Author 刘武贵
 * @Date 2024/8/15 22:00
 * @Description 功能描述：测试树表Mapper接口
 */
// 定义数据权限列的映射关系
@DataPermission({
    // 将"deptName"字段映射到"dept_id"字段
    @DataColumn(key = "deptName", value = "dept_id"),
    // 将"userName"字段映射到"user_id"字段
    @DataColumn(key = "userName", value = "user_id")
})
public interface TestTreeMapper extends BaseMapperPlus<TestTree, TestTreeVo> {

}
